// 封装高级组建、
import {getToken} from '@/utils/index'
import { Navigate } from 'react-router-dom'
export function AuthRoute(Children){
    const token =getToken()
    console.log('33',token);
    if(token){
        return <>{Children}</>
    }else{
        return <Navigate to={'/login'} replace/>
    }

}